from django.contrib import admin
from .models import Blog

# Register your models here.


class BlogAdmin(admin.ModelAdmin):
    list_display = ["id", "name", "tag", "show", "modified_time"]
    # 设置哪些字段可以点击进入编辑界面
    list_display_links = (
        "id",
        "name",
    )
    list_filter = (
        "name",
        "tag",
    )


admin.site.register(Blog, BlogAdmin)
